﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<StudentsGroup>" %>
<%@import Namespace="ViewRes" %>
<div>
<input type="checkbox" value='<%:Model.StudentsGroupId%>' name="selectedGroups" />
    <span>
      <img src="<%:Url.Content("~/Content/Icons/group.png")%>" class="mediumIcon" />                 
        <span class="mediumBoldText">
            <%:Model.Name%>
         </span>
    </span>
     <%
         if (ViewData["LoggedUser"] is Administrator)
         {%>
    <span>
        <a href="<%:Url.RouteUrl("Default",
                                            new
                                                {
                                                    controller = "StudentsGroups",
                                                    action = "Edit",
                                                    id = Model.StudentsGroupId
                                                })%>"
            onclick=" editGroup(this.href);return false; ">
            <img class="mediumIcon" src="<%:Url.Content("~/Content/Icons/edit.png")%>" title = "<%:SharedStrings.Edit%>" />
        </a>
    </span>
    <%
         }%>
</div>
